# FROM registry.xuelangyun.com/shuzhi/sh-sim-gateway:3
FROM node:22

# 设置时区为 Asia/Shanghai
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
    echo $TZ > /etc/timezone

WORKDIR /app
COPY package.json ./
RUN npm --registry http://registry.npm.taobao.org install --production
COPY ./dist ./

CMD [ "bash" ]